#pragma once
#include "SDLSprite.h"
#include "SDLScene.h"
#include "PokemonDefinition.h"
#include "math.h"
#include "Pokemon.h"
#include <string>

class ScalingBar : public SDLSprite
{
public:
	ScalingBar(int _posX, int _posY, int _frameX, int _frameY, int _width, int _height, std::string _fileName);
	ScalingBar(int _posX, int _posY, int _frameX, int _frameY, int _width, int _height, std::string _fileName, Pokemon* _pokemon, SDLScene* _scene);
	~ScalingBar();

	virtual void SetPokemon(Pokemon* const _pokemon) = 0;

protected:
	const Pokemon* m_Pokemon;
	int m_Current;
	int m_Max;
	int m_BaseWidth;
	float m_LastRatio;
	virtual void Update();

};

